package io.geely.push.modules.sys.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.geely.push.common.utils.PageUtils;
import io.geely.push.common.utils.Query;
import io.geely.push.modules.sys.dao.ApnUserDao;
import io.geely.push.modules.sys.entity.ApnUserEntity;
import io.geely.push.modules.sys.service.ApnUserService;

@Service("apnUserService")
public class ApnUserServiceImpl extends ServiceImpl<ApnUserDao, ApnUserEntity> implements ApnUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<ApnUserEntity> page = this.selectPage(
                new Query<ApnUserEntity>(params).getPage(),
                new EntityWrapper<ApnUserEntity>()
        );

        return new PageUtils(page);
    }

}
